package com.ruoyi.project.module.xianhuazhuangtai.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.module.xianhuazhuangtai.mapper.XianhuazhuangtaiMapper;
import com.ruoyi.project.module.xianhuazhuangtai.domain.Xianhuazhuangtai;
import com.ruoyi.project.module.xianhuazhuangtai.service.IXianhuazhuangtaiService;
import com.ruoyi.common.support.Convert;

/**
 * 鲜花状态 服务层实现
 * 
 * @author ruoyi
 * @date 2018-11-13
 */
@Service
public class XianhuazhuangtaiServiceImpl implements IXianhuazhuangtaiService 
{
	@Autowired
	private XianhuazhuangtaiMapper xianhuazhuangtaiMapper;

	/**
     * 查询鲜花状态信息
     * 
     * @param userId 鲜花状态ID
     * @return 鲜花状态信息
     */
    @Override
	public Xianhuazhuangtai selectXianhuazhuangtaiById(Integer userId)
	{
	    return xianhuazhuangtaiMapper.selectXianhuazhuangtaiById(userId);
	}
	
	/**
     * 查询鲜花状态列表
     * 
     * @param xianhuazhuangtai 鲜花状态信息
     * @return 鲜花状态集合
     */
	@Override
	public List<Xianhuazhuangtai> selectXianhuazhuangtaiList(Xianhuazhuangtai xianhuazhuangtai)
	{
	    return xianhuazhuangtaiMapper.selectXianhuazhuangtaiList(xianhuazhuangtai);
	}
	
    /**
     * 新增鲜花状态
     * 
     * @param xianhuazhuangtai 鲜花状态信息
     * @return 结果
     */
	@Override
	public int insertXianhuazhuangtai(Xianhuazhuangtai xianhuazhuangtai)
	{
	    return xianhuazhuangtaiMapper.insertXianhuazhuangtai(xianhuazhuangtai);
	}
	
	/**
     * 修改鲜花状态
     * 
     * @param xianhuazhuangtai 鲜花状态信息
     * @return 结果
     */
	@Override
	public int updateXianhuazhuangtai(Xianhuazhuangtai xianhuazhuangtai)
	{
	    return xianhuazhuangtaiMapper.updateXianhuazhuangtai(xianhuazhuangtai);
	}

	/**
     * 删除鲜花状态对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteXianhuazhuangtaiByIds(String ids)
	{
		return xianhuazhuangtaiMapper.deleteXianhuazhuangtaiByIds(Convert.toStrArray(ids));
	}
	
}
